//-----------------------------------------------------------------------
// <copyright file="a_ListStateService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_ListStateService
    {
        #region a_ListState

        public static void Createa_ListState(a_ListState a_ListState)
        {            
            try
            {
                a_ListStateDAO a_ListStateDAO = new a_ListStateDAO();
                a_ListStateDAO.Createa_ListState(a_ListState);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_ListState(a_ListState a_ListState)
        {            
            try
            {
                a_ListStateDAO a_ListStateDAO = new a_ListStateDAO();
                a_ListStateDAO.Updatea_ListState(a_ListState);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_ListState(int ftStateID)
        {            
            try
            {
                a_ListStateDAO a_ListStateDAO = new a_ListStateDAO();
                a_ListStateDAO.Deletea_ListState(ftStateID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_ListState Geta_ListState(int ftStateID)
        {            
            try
            {
                a_ListStateDAO a_ListStateDAO = new a_ListStateDAO();
                return a_ListStateDAO.Geta_ListState(ftStateID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_ListStateCollection Geta_ListStateList(a_ListStateColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_ListStateDAO a_ListStateDAO = new a_ListStateDAO();
                return a_ListStateDAO.Geta_ListStateList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_ListStateCollection Geta_ListStateList(a_ListStateColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_ListStateDAO a_ListStateDAO = new a_ListStateDAO();
                return a_ListStateDAO.Geta_ListStateList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}